package org.codert.wxpay.support;


/**
 * 都放一个里边，其实不太好
 * @author: TanJingyu
 * @create: 2021-08-13 11:20
 **/
public enum ConstantEnum {
    /**
     *  pay_way
     *  支付方式相关
     */
    JS_API((byte) 10, "JS_API支付"),
    APP((byte) 11, "APP支付"),
    H5((byte) 12, "H5支付"),
    NATIVE((byte) 13, "Native支付"),
    APPLET((byte) 14, "小程序支付"),

    /**
     * private key`s layout
     * 商家私钥保存形式。
     */
    FILE((byte) 20, "私钥存储在文件"),
    STRING((byte) 21, "私钥为String字符串");

    private byte value;
    private String meaning;

    ConstantEnum(byte value, String meaning) {
        this.value = value;
        this.meaning = meaning;
    }

    public byte getValue() {
        return value;
    }

    public void setValue(byte value) {
        this.value = value;
    }

    public String getMeaning() {
        return meaning;
    }

    public void setMeaning(String meaning) {
        this.meaning = meaning;
    }
}
